from osgeo import ogr

wkts = [
    "POINT(119.5 35.5)",
    "LINESTRING(119.5 35.5, 119.6 35.5,119.6 35.6)",
    "POLYGON((119.5 35.5, 119.6 35.5, 119.6 35.6, 119.6 35.6, 119.5 35.5))"
]

for wkt in wkts:
    geometry: ogr.Geometry = ogr.CreateGeometryFromWkt(wkt);
    print(geometry.GetGeometryName())